Kanzi 4.0.0-beta2
kanzi::gfx::SetUniformOffsetCommand Struct Reference

Sets a Uniform Offset that will take effect with the next BindRenderResourceSetCommand or BindRenderResourceSetCommand. More...

#include <kanzi/gfx/commands.hpp>

Inheritance diagram for kanzi::gfx::SetUniformOffsetCommand:
[legend]

Public Member Functions

 SetUniformOffsetCommand ()
 Constructor.
 
- Public Member Functions inherited from kanzi::gfx::BaseCommand
uint32_t getSize () const
 Gets the command size in bytes.
 
uint8_t getTag () const
 Gets the command tag.
 
CommandType getType () const
 Gets the command type.
 
void setTag (uint8_t tag)
 Sets the command tag.
 

Public Attributes

uint8_t bufferIndex
 Buffer index within the resource set for the uniform buffer.
 
uint32_t offset
 The uniform buffer offset.
 
uint8_t setIndex
 Resource set index for the uniform buffer.
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::gfx::BaseCommand
 BaseCommand (CommandType t, uint32_t s)
 Constructor.
 
 BaseCommand (const BaseCommand &other)
 Copy Constructor.
 
BaseCommandoperator= (const BaseCommand &other)
 Assignment operator.
 

Detailed Description

Sets a Uniform Offset that will take effect with the next BindRenderResourceSetCommand or BindRenderResourceSetCommand.

Only limits::MaxDynamicUniformBuffers instances of this command can be submitted between bind resource set commands.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ SetUniformOffsetCommand()

kanzi::gfx::SetUniformOffsetCommand::SetUniformOffsetCommand ( )
inlineexplicit

Constructor.

Member Data Documentation

◆ setIndex

uint8_t kanzi::gfx::SetUniformOffsetCommand::setIndex

Resource set index for the uniform buffer.

◆ bufferIndex

uint8_t kanzi::gfx::SetUniformOffsetCommand::bufferIndex

Buffer index within the resource set for the uniform buffer.

◆ offset

uint32_t kanzi::gfx::SetUniformOffsetCommand::offset

The uniform buffer offset.

This offset must be a multiple of the current DevicePropertyId::UniformBufferOffsetAlignment. To determine the effective offset for the associated uniform buffer view, add UniformBufferView::offset to SetUniformOffsetCommand::offset. The offset must be such that the end of the associated UniformBufferView after the offset cannot extend beyond the end of the buffer.


The documentation for this struct was generated from the following file: